package com.sunbim.rsrv.mapper;

import com.sunbim.rsrv.pojo.Protection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文物保护工程 Mapper 接口
 * </p>
 *
 * @author yuhui
 * @since 2022-01-16
 */
@Mapper
public interface ProtectionMapper extends BaseMapper<Protection> {

    @Select("select id,relics_id,work_date,work_desc,create_time,update_time from protection where relics_id = #{relicsId}")
    List<Map<String, Object>> selectByRelicsId(Integer relicsId);
}
